/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.clinicplus.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

/**
 *
 * @author ely
 */
@Entity
public class Country implements Serializable {

    @Id
    @SequenceGenerator(sequenceName = "seq_country", name = "seq_country", allocationSize = 1)
    @GeneratedValue(generator = "seq_country", strategy = GenerationType.SEQUENCE)
    private Long id;
    private String sgl;
    private String name;

    public Country() {
    }

    public Country(Long id, String slg, String name) {
        this.id = id;
        this.sgl = slg;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

  

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSgl() {
        return sgl;
    }

    public void setSgl(String sgl) {
        this.sgl = sgl;
    }

    
    
}
